package com.feng.zhihao.apigeteway.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * FieldLimitInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "FIELD_LIMIT_INFO")

public class FieldLimitInfo implements java.io.Serializable {

	// Fields

	private String limitId;
	private InterfaceFieldInfo interfaceFieldInfo;
	private String limitRegular;
	private String limitMax;
	private String limitMin;
	private String limitEnum;
	private Integer limitLengthMax;
	private Integer limitLengthMin;
	private Integer limitPrecision;

	// Constructors

	/** default constructor */
	public FieldLimitInfo() {
	}

	/** minimal constructor */
	public FieldLimitInfo(String limitId) {
		this.limitId = limitId;
	}

	/** full constructor */
	public FieldLimitInfo(String limitId, InterfaceFieldInfo interfaceFieldInfo, String limitRegular, String limitMax,
			String limitMin, String limitEnum, Integer limitLengthMax, Integer limitLengthMin, Integer limitPrecision) {
		this.limitId = limitId;
		this.interfaceFieldInfo = interfaceFieldInfo;
		this.limitRegular = limitRegular;
		this.limitMax = limitMax;
		this.limitMin = limitMin;
		this.limitEnum = limitEnum;
		this.limitLengthMax = limitLengthMax;
		this.limitLengthMin = limitLengthMin;
		this.limitPrecision = limitPrecision;
	}

	// Property accessors
	@Id

	@Column(name = "LIMIT_ID", unique = true, nullable = false, length = 36)

	public String getLimitId() {
		return this.limitId;
	}

	public void setLimitId(String limitId) {
		this.limitId = limitId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "INTERFACE_FIELD_ID")

	public InterfaceFieldInfo getInterfaceFieldInfo() {
		return this.interfaceFieldInfo;
	}

	public void setInterfaceFieldInfo(InterfaceFieldInfo interfaceFieldInfo) {
		this.interfaceFieldInfo = interfaceFieldInfo;
	}

	@Column(name = "LIMIT_REGULAR", length = 1024)

	public String getLimitRegular() {
		return this.limitRegular;
	}

	public void setLimitRegular(String limitRegular) {
		this.limitRegular = limitRegular;
	}

	@Column(name = "LIMIT_MAX", length = 64)

	public String getLimitMax() {
		return this.limitMax;
	}

	public void setLimitMax(String limitMax) {
		this.limitMax = limitMax;
	}

	@Column(name = "LIMIT_MIN", length = 64)

	public String getLimitMin() {
		return this.limitMin;
	}

	public void setLimitMin(String limitMin) {
		this.limitMin = limitMin;
	}

	@Column(name = "LIMIT_ENUM", length = 1024)

	public String getLimitEnum() {
		return this.limitEnum;
	}

	public void setLimitEnum(String limitEnum) {
		this.limitEnum = limitEnum;
	}

	@Column(name = "LIMIT_LENGTH_MAX")

	public Integer getLimitLengthMax() {
		return this.limitLengthMax;
	}

	public void setLimitLengthMax(Integer limitLengthMax) {
		this.limitLengthMax = limitLengthMax;
	}

	@Column(name = "LIMIT_LENGTH_MIN")

	public Integer getLimitLengthMin() {
		return this.limitLengthMin;
	}

	public void setLimitLengthMin(Integer limitLengthMin) {
		this.limitLengthMin = limitLengthMin;
	}

	@Column(name = "LIMIT_PRECISION")

	public Integer getLimitPrecision() {
		return this.limitPrecision;
	}

	public void setLimitPrecision(Integer limitPrecision) {
		this.limitPrecision = limitPrecision;
	}

}